import LayoutMain from '@/layout';
import setting from '@/setting';
let routePre = setting.routePre;

let pre = 'admin_';
export default {
  path: routePre + '/admin',
  name: 'admin',
  header: 'admin',
  redirect: {
    name: `${pre}list`,
  },
  meta: {
    auth: true
  },
  component: LayoutMain,
  children: [
    {
      path: 'list',
      name: `${pre}list`,
      meta: {
        auth: ['admin-admin-list'],
        title: '子管理员',
      },
      component: () => import('@/pages/admin/index'),
    },
  ],
};